Received: from sun2.nsfnet-relay.ac.uk (sun2.nsfnet-relay.ac.uk [128.86.8.45]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id OAA09499 for <blitz-list@helsinki.fi>; Mon, 15 Aug 1994 14:59:38 +0300
Via: uk.ac.edinburgh.meteorology; Mon, 15 Aug 1994 12:54:17 +0100
Date: Mon, 15 Aug 94 12:54:10 BST
Message-Id: <2779.9408151154@met.ed.ac.uk>
From: M Cooper <mcc@meteorology.edinburgh.ac.uk>
Subject: Copper Lists
To: blitz-list@helsinki.fi
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Status:
Status: O
The best way to get the hang of Copperlists with Blitz (I find) is to
write a little Copper disassembler. Then setup the display as necessary
and view the Copper List with it
To do this scan through the memory adresses from CopLoc to CopLoc +
CopLen step 4, decode the pairs of words at these addresses.
For adr.l=CopLoc to CopLoc+CopLen Step 4
word1.w=peek.w(adr)
word2.w=peek.w(adr+2)
...
Next
The lowest bits tell you the type of Copper command,a nd the other bits
give the data and adresses. See the Blitz manual appendix, and interpret
the results as you go. Then you can make up a table of useful data
adresses for your particular Coper list set-up,a nd poke new data e.g.
colours into these values.
If enough people want me to, ill post my own Copper disassembler here.